Skip to content

--profile conflicts with --release (and/or --debug)#2793

Merged
messense merged 1 commit intoPyO3:mainfrom
davidhewitt:profile-conflicts
Oct 21, 2025
Merged

--profile conflicts with --release (and/or --debug)#2793
messense merged 1 commit intoPyO3:mainfrom
davidhewitt:profile-conflicts

Conversation

@davidhewitt
Copy link
Copy Markdown
Member

This makes maturin behave like cargo when passing --release --profile dev, e.g.

$ cargo build --release --profile dev
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'

we now get similar from maturin

$ cargo run -- build --release --profile dev
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s
     Running `target/debug/maturin build --release --profile dev`
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'

@messense messense merged commit 04aa266 into PyO3:main Oct 21, 2025
115 of 117 checks passed
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 20, 2025
https://build.opensuse.org/request/show/1318737
by user mia + anag_factory
Automatic submission by obs-autosubmit
- Update to 1.10.2
  * Fix tagging for iOS x86_64 simulator wheels.
  * Set entry type when adding to the tar file.

- Update to 1.10.1
  * Fix generated WHEEL Tag metadata to be spec compliant.
    gh#PyO3/maturin#2762
  * Export all Cargo URL metadata items to Python
    gh#PyO3/maturin#2760
  * Update maximum Python version to 3.14
    gh#PyO3/maturin#2763
  * Remove shebang from non-executable init.py file
    gh#PyO3/maturin#2775
  * Stop warning about missing extension-module feature on pyo3 0.26+
    gh#PyO3/maturin#2789
  * --profile conflicts with --release (and/or --debug)
    gh#PyO3/maturin#2793
  * Bump MSRV to 1.83.0
    gh#PyO3/maturin#2790
  * respect CLI profile over pyproject.toml
    gh#PyO3/maturin#2794
  * chore: add FreeBSD 14.3 a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants